package com.ddxz.demo.clickhouse.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Properties;

/**
 * description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2022/1/25
 */

@Component
@ConfigurationProperties(prefix="spring.datasource")
public class ClickHouseProperties extends ru.yandex.clickhouse.settings.ClickHouseProperties {
    private String url;

    private String username;

    private Integer delay;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getDelay() {
        return delay;
    }

    public void setDelay(Integer delay) {
        this.delay = delay;
    }
}
